﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="BaseData_PersonalIncomeTax" Codebehind="PersonalIncomeTax.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" />
        <asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" /><br />
        <asp:DataList ID="dlistPersonalIncomeTax" runat="server" OnCancelCommand="dlistPersonalIncomeTax_CancelCommand" OnEditCommand="dlistPersonalIncomeTax_EditCommand" OnItemCommand="dlistPersonalIncomeTax_ItemCommand" OnUpdateCommand="dlistPersonalIncomeTax_UpdateCommand">
            <HeaderTemplate>
                <table>
                    <tr>
                        <td>
                            扣除标准
                        </td>
                        <td>
                            下限
                        </td>
                        <td>
                            上限
                        </td>
                        <td>
                            税率
                        </td>
                        <td>    
                            速算扣除数
                        </td>
                        <td>
                        </td>
                    </tr>
                
            </HeaderTemplate>
            <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Label ID="lblStandardDeduction" runat="server" Text='<%# Eval("StandardDeduction")%>'></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblLowerLimit" runat="server" Text='<%# Eval("LowerLimit")%>'></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblUpperLimit" runat="server" Text='<%# Eval("UpperLimit")%>'></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblRate" runat="server" Text='<%# Eval("Rate")%>'></asp:Label>
                        </td>
                        <td>    
                            <asp:Label ID="lblDeductibleAmount" runat="server" Text='<%# Eval("DeductibleAmount")%>'></asp:Label>
                        </td>
                        <td>
                            <asp:Button ID="btnEdit" runat="server"  CssClass="input_button" Text="修改" CommandName="Edit" />
                            <asp:Button ID="btnDelete" runat="server" CssClass="input_button" Text="删除" CommandName="del" />
                        </td>
                    </tr>
            </ItemTemplate>
            <EditItemTemplate>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtStandardDeduction" runat="server" Text='<%# Eval("StandardDeduction")%>'></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowerLimit" runat="server" Text='<%# Eval("LowerLimit")%>'></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtUpperLimit" runat="server" Text='<%# Eval("UpperLimit")%>'></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtRate" runat="server" Text='<%# Eval("Rate")%>'></asp:TextBox>
                        </td>
                        <td>    
                            <asp:TextBox ID="txtDeductibleAmount" runat="server" Text='<%# Eval("DeductibleAmount")%>'></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btnUpdate" runat="server" CssClass="input_button" Text="更新" CommandName="update" />
                            <asp:Button ID="btnCancel" runat="server" CssClass="input_button" Text="取消" CommandName="cancel" />
                        </td>
                    </tr>
            </EditItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:DataList><br />
        &nbsp; &nbsp; &nbsp;扣除标准：<asp:TextBox ID="txtStandardDeduction" runat="server"></asp:TextBox>
        <br />
        下 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; 限：<asp:TextBox ID="txtLowerLimit" runat="server"></asp:TextBox>
        <br />
        上 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; 限：<asp:TextBox ID="txtUpperLimit" runat="server"></asp:TextBox><br />
        税 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; 率：<asp:TextBox ID="txtRate" runat="server"></asp:TextBox><br />
        速算扣除数：<asp:TextBox ID="txtDeductibleAmount" runat="server"></asp:TextBox>&nbsp;<br />
        &nbsp; &nbsp;
        <br />
        <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" />
        </div>
    </form>
</body>
</html>
